$(function() {

	$("#select").click(function(e){
		
		$.memberSelect();
		e.preventDefault();
	});
	
	$("#newOrgnOK").click(function() {

		var nodes = menuTree.getSelectedNodes();
		var params = AKF.formParams($("#newOrgnForm"));
		params.push({
			name : "pId",
			value : nodes[0].id
		});
		if ($('#newOrgnForm').validation()) {
			$.ajax({
				url : '${_BASE_PATH}/system/orgn/add',
				data : params,
				success : function(data) {
					$(".modaldialog").modal('hide');
					$.alert(data.msg, function() {
						oTable.gridReload();
					});
				}
			});
		}

	});
});